if (self.CavalryLogger) { CavalryLogger.start_js(["mSBrt"]); } __d("GenderConst",[],(function(a,b,c,d,e,f){e.exports={NOT_A_PERSON:0,FEMALE_SINGULAR:1,MALE_SINGULAR:2,FEMALE_SINGULAR_GUESS:3,MALE_SINGULAR_GUESS:4,MIXED_SINGULAR:5,MIXED_PLURAL:5,NEUTER_SINGULAR:6,UNKNOWN_SINGULAR:7,FEMALE_PLURAL:8,MALE_PLURAL:9,NEUTER_PLURAL:10,UNKNOWN_PLURAL:11}}),null); __d("IntlVariations",[],(function(a,b,c,d,e,f){e.exports={BITMASK_NUMBER:28,BITMASK_GENDER:3,NUMBER_ZERO:16,NUMBER_ONE:4,NUMBER_TWO:8,NUMBER_FEW:20,NUMBER_MANY:12,NUMBER_OTHER:24,GENDER_MALE:1,GENDER_FEMALE:2,GENDER_UNKNOWN:3}}),null); __d("EventEmitterWithValidation",["BaseEventEmitter"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(b,a);function b(b,c){var d;d=a.call(this)||this;d.$EventEmitterWithValidation1=Object.keys(b);d.$EventEmitterWithValidation2=Boolean(c);return d}var c=b.prototype;c.emit=function(b){if(this.$EventEmitterWithValidation1.indexOf(b)===-1){if(this.$EventEmitterWithValidation2)return;throw new TypeError(g(b,this.$EventEmitterWithValidation1))}return a.prototype.emit.apply(this,arguments)};return b}(b("BaseEventEmitter"));function g(a,b){a='Unknown event type "'+a+'". ';a+="Known event types: "+b.join(", ")+".";return a}e.exports=a}),null); __d("mixInEventEmitter",["invariant","EventEmitterWithHolding","EventEmitterWithValidation","EventHolder"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();function a(a,b,c){b||g(0,3159);var d=a.prototype||a;d.__eventEmitter&&g(0,3160);a=a.constructor;a&&(a===Object||a===Function||g(0,3161));d.__types=babelHelpers["extends"]({},d.__types,b);d.__ignoreUnknownEvents=Boolean(c);Object.assign(d,h)}var h={emit:function(a,b,c,d,e,f,g){return this.__getEventEmitter().emit(a,b,c,d,e,f,g)},emitAndHold:function(a,b,c,d,e,f,g){return this.__getEventEmitter().emitAndHold(a,b,c,d,e,f,g)},addListener:function(a,b,c){return this.__getEventEmitter().addListener(a,b,c)},once:function(a,b,c){return this.__getEventEmitter().once(a,b,c)},addRetroactiveListener:function(a,b,c){return this.__getEventEmitter().addRetroactiveListener(a,b,c)},listeners:function(a){return this.__getEventEmitter().listeners(a)},removeAllListeners:function(){this.__getEventEmitter().removeAllListeners()},removeCurrentListener:function(){this.__getEventEmitter().removeCurrentListener()},releaseHeldEventType:function(a){this.__getEventEmitter().releaseHeldEventType(a)},__getEventEmitter:function(){if(!this.__eventEmitter){var a=new(b("EventEmitterWithValidation"))(this.__types,this.__ignoreUnknownEvents),c=new(b("EventHolder"))();this.__eventEmitter=new(b("EventEmitterWithHolding"))(a,c)}return this.__eventEmitter}};e.exports=a}),null); __d("pageID",["WebSession"],(function(a,b,c,d,e,f){"use strict";e.exports=b("WebSession").getPageId_DO_NOT_USE()}),null); __d("NavigationMetricsCore",["mixInEventEmitter","pageID"],(function(a,b,c,d,e,f){__p&&__p();var g={NAVIGATION_DONE:"NAVIGATION_DONE",EVENT_OCCURRED:"EVENT_OCCURRED"},h={tti:"tti",e2e:"e2e",all_pagelets_loaded:"all_pagelets_loaded",all_pagelets_displayed:"all_pagelets_displayed"},i=0,j={},k=function(){"use strict";__p&&__p();function a(){this.eventTimings={tti:null,e2e:null,all_pagelets_loaded:null,all_pagelets_displayed:null},this.lid=b("pageID")+":"+i++,this.extras={}}var c=a.prototype;c.getLID=function(){return this.lid};c.setRequestStart=function(a){this.start=a;return this};c.setTTI=function(a){this.eventTimings.tti=a;this.$1(h.tti,a);return this};c.setE2E=function(a){this.eventTimings.e2e=a;this.$1(h.e2e,a);return this};c.setExtra=function(a,b){this.extras[a]=b;return this};c.setDisplayDone=function(a){this.eventTimings.all_pagelets_displayed=a;this.setExtra("all_pagelets_displayed",a);this.$1(h.all_pagelets_displayed,a);return this};c.setAllPageletsLoaded=function(a){this.eventTimings.all_pagelets_loaded=a;this.setExtra("all_pagelets_loaded",a);this.$1(h.all_pagelets_loaded,a);return this};c.setServerLID=function(a){this.serverLID=a;return this};c.$1=function(a,b){var c={};j!=null&&this.serverLID!=null&&j[this.serverLID]!=null&&(c=j[this.serverLID]);c=babelHelpers["extends"]({},c,{event:a,timestamp:b});l.emitAndHold(g.EVENT_OCCURRED,this.serverLID,c);return this};c.doneNavigation=function(){var a=babelHelpers["extends"]({start:this.start,extras:this.extras},this.eventTimings);if(this.serverLID&&j[this.serverLID]){var b=this.serverLID;Object.assign(a,j[b]);delete j[b]}l.emitAndHold(g.NAVIGATION_DONE,this.lid,a)};return a}(),l={Events:g,postPagelet:function(a,b,c){},siteInit:function(a){a(k)},setPage:function(a){if(!a.serverLID)return;j[a.serverLID]={page:a.page,pageType:a.page_type,pageURI:a.page_uri,serverLID:a.serverLID}},getFullPageLoadLid:function(){throw new Error("getFullPageLoadLid is not implemented on this site")}};b("mixInEventEmitter")(l,g);e.exports=l}),null); __d("NavigationMetrics",["Arbiter","NavigationMetricsCore","PageEvents","Stratcom","performance","performanceAbsoluteNow"],(function(a,b,c,d,e,f){__p&&__p();var g,h,i={},j="";(a=b("NavigationMetricsCore")).getFullPageLoadLid=function(){return j};a.postPagelet=function(a,c,d){i[d]||(i[d]=(g||(g=b("performanceAbsoluteNow")))())};a.siteInit(function(a){__p&&__p();var c=new a();c.setRequestStart((h||(h=b("performance"))).timing&&(h||(h=b("performance"))).timing.navigationStart);function d(a,d,e,f){__p&&__p();b("Arbiter").subscribe(a,function(a,g){__p&&__p();j===""&&(j=g.lid),c.setServerLID(g.lid),g.arbiter.subscribe(d,function(a,d){a=d.lid;d=d.ts;c.setTTI(d);b("NavigationMetricsCore").emitAndHold(b("NavigationMetricsCore").Events.EVENT_OCCURRED,a,{event:"tti",timestamp:d})}),g.arbiter.subscribe(e,function(a,b){a=b.ts;c.setDisplayDone(a)}),b("Arbiter").subscribe(f,function(a,b){a=b.ts;c.eventTimings.tti||c.setTTI(i[g.lid]);c.setE2E(a).doneNavigation();delete i[g.lid]})})}d("BigPipe/init","tti_bigpipe","all_pagelets_displayed",b("PageEvents").BIGPIPE_ONLOAD);d("MRenderingScheduler/init","MRenderingScheduler/tti","MRenderingScheduler/dd","MRenderingScheduler/e2e");b("Stratcom").listen("m:page:loading",null,function(){c=new a(),c.setRequestStart((g||(g=b("performanceAbsoluteNow")))())})});e.exports=a}),3); __d("BanzaiConsts",[],(function(a,b,c,d,e,f){a={SEND:"Banzai:SEND",OK:"Banzai:OK",ERROR:"Banzai:ERROR",SHUTDOWN:"Banzai:SHUTDOWN",BASIC:"basic",VITAL:"vital",BASIC_WAIT:6e4,BASIC_WAIT_COMET:2e3,VITAL_WAIT:1e3,EXPIRY:30*6e4,LAST_STORAGE_FLUSH:"banzai:last_storage_flush",STORAGE_FLUSH_INTERVAL:12*60*6e4,POST_READY:0,POST_INFLIGHT:1,POST_SENT:2};e.exports=a}),null); /** * License: https://www.facebook.com/legal/license/qZmK4zWM8-v/ */ __d("SnappyCompress",[],(function(a,b,c,d,e,f){__p&&__p();(function a(b,c,d){__p&&__p();function e(g,h){__p&&__p();if(!c[g]){if(!b[g]){var i=typeof requireSnappy=="function"&&requireSnappy;if(!h&&i)return i(g,!0);if(f)return f(g,!0);h=new Error("Cannot find module '"+g+"'");throw h.code="MODULE_NOT_FOUND",h}i=c[g]={exports:{}};b[g][0].call(i.exports,function(a){var c=b[g][1][a];return e(c?c:a)},i,i.exports,a,b,c,d)}return c[g].exports}var f=typeof requireSnappy=="function"&&requireSnappy;for(var g=0;g>>b}function g(a,b){return a[b]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)}function h(a,b,c){return a[b]===a[c]&&a[b+1]===a[c+1]&&a[b+2]===a[c+2]&&a[b+3]===a[c+3]}function i(a,b,c,d,e){var f;for(f=0;e>f;f++)c[d+f]=a[b+f]}function j(a,b,c,d,e){return 60>=c?(d[e]=c-1<<2,e+=1):256>c?(d[e]=240,d[e+1]=c-1,e+=2):(d[e]=244,d[e+1]=c-1&255,d[e+2]=c-1>>>8,e+=3),i(a,b,d,e,c),e+c}function k(a,b,c,d){return 12>d&&2048>c?(a[b]=1+(d-4<<2)+(c>>>8<<5),a[b+1]=255&c,b+2):(a[b]=2+(d-1<<2),a[b+1]=255&c,a[b+2]=c>>>8,b+3)}function l(a,b,c,d){for(;d>=68;)b=k(a,b,c,64),d-=64;return d>64&&(b=k(a,b,c,60),d-=60),k(a,b,c,d)}function m(a,b,c,e,f){__p&&__p();for(var i=1;c>=1<=i;)i+=1;i-=1;var k=32-i;"undefined"==typeof q[i]&&(q[i]=new Uint16Array(1<=x)for(c=m-x,b+=1,x=d(g(a,b),k);w;){s=32,o=b;do{if(b=o,n=x,t=s>>>5,s+=1,o=b+t,b>c){w=!1;break}x=d(g(a,o),k),r=u+i[n],i[n]=b-u}while(!h(a,b,r));if(!w)break;f=j(a,v,b-v,e,f);do{for(t=b,n=4;m>b+n&&a[b+n]===a[r+n];)n+=1;if(b+=n,o=t-r,f=l(e,f,o,n),v=b,b>=c){w=!1;break}s=d(g(a,b-1),k),i[s]=b-1-u,t=d(g(a,b),k),r=u+i[t],i[t]=b-u}while(h(a,b,r));if(!w)break;b+=1,x=d(g(a,b),k)}return m>v&&(f=j(a,v,m-v,e,f)),f}function n(a,b,c){do b[c]=127&a,a>>>=7,a>0&&(b[c]+=128),c+=1;while(a>0);return c}function c(a){this.array=a}a=16;var o=1<e;)b=Math.min(d-e,o),f=m(c,e,b,a,f),e+=b;return f},b.SnappyCompressor=c},{}],4:[function(c,a,b){"use strict";__p&&__p();function d(a,b,c,d,e){var f;for(f=0;e>f;f++)c[d+f]=a[b+f]}function g(a,b,c,d){var e;for(e=0;d>e;e++)a[b+e]=a[b-c+e]}function c(a){this.array=a,this.pos=0}var h=[0,255,65535,16777215,4294967295];c.prototype.readUncompressedLength=function(){for(var a,b,c=0,d=0;32>d&&this.pos>>d!==b)return-1;if(c|=b<a)return c;d+=7}return-1},c.prototype.uncompressToBuffer=function(a){__p&&__p();for(var b,c,e,f,i=this.array,j=i.length,k=this.pos,l=0;k>>2)+1,c>60){if(k+3>=j)return!1;e=c-60,c=i[k]+(i[k+1]<<8)+(i[k+2]<<16)+(i[k+3]<<24),c=(c&h[e])+1,k+=e}if(k+c>j)return!1;d(i,k,a,l,c),k+=c,l+=c}else{switch(3&b){case 1:c=(b>>>2&7)+4,f=i[k]+(b>>>5<<8),k+=1;break;case 2:if(k+1>=j)return!1;c=(b>>>2)+1,f=i[k]+(i[k+1]<<8),k+=2;break;case 3:if(k+3>=j)return!1;c=(b>>>2)+1,f=i[k]+(i[k+1]<<8)+(i[k+2]<<16)+(i[k+3]<<24),k+=4}if(0===f||f>l)return!1;g(a,l,f,c),l+=c}return!0},b.SnappyDecompressor=c},{}]},{},[1]),e.exports=SnappyJS}),null); __d("SnappyCompressUtil",["SnappyCompress"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g={compressUint8ArrayToSnappy:function(a){__p&&__p();if(a==null)return null;var c=null;try{c=b("SnappyCompress").compress(a)}catch(a){return null}a="";for(var d=0;d127)return null;b[c]=d}return g.compressUint8ArrayToSnappy(b)}};e.exports=g}),null); __d("BanzaiAdapter",["BanzaiConsts","CurrentUser","DTSG","DTSGUtils","MBanzaiConfig","MRequest","MRequestConfig","MRequestDataSerializer","MSession","Run","SnappyCompressUtil","SprinkleConfig","Stratcom","Visibility","ZeroCategoryHeader"],(function(a,b,c,d,e,f){__p&&__p();var g,h="/a/bz",i=[],j={config:b("MBanzaiConfig"),endpoint:h,useBeacon:Boolean(b("MBanzaiConfig").gks&&b("MBanzaiConfig").gks.mtouch_use_beacon),inform:function(a){b("Stratcom").invoke(a)},subscribe:function(a,c){return b("Stratcom").listen(a,null,c)},cleanup:function(){var a=i;i=[];a.forEach(function(a){a.abort()})},send:function(a,c,d,e){__p&&__p();var f=new(b("MRequest"))(h);f.setAutoProcess(!1);f.setData(JSON.parse(j.prepForTransit(a,!1)));f.setRequestHeader("X_FB_BACKGROUND_STATE",1);c&&f.listen("done",c);e||f.listen("done",function(a){j.inform((g||(g=b("BanzaiConsts"))).OK)});f.listen("error",function(a){a.isHandled=!0;a=f.getTransport().status;d&&d(a);e||j.inform((g||(g=b("BanzaiConsts"))).ERROR)});b("MRequestConfig").cleanFinishedRequest&&f.listen("finally",function(){var a=i.indexOf(f);a>=0&&i.splice(a,1)});i.push(f);f.send()},readyToSend:function(){return navigator.onLine},setHooks:function(a){b("Visibility").addListener("hidden",a._store),b("Visibility").addListener("visible",a._restore),window.addEventListener("pagehide",a._store),window.addEventListener("pageshow",a._restore),window.addEventListener("blur",a._store),window.addEventListener("focus",a._restore)},setUnloadHook:function(a){b("Run").onUnload(a._unload)},onUnload:function(a){b("Run").onUnload(a)},prepForTransit:function(a,c){__p&&__p();a=JSON.stringify(a);a={data:a,ts:Date.now(),ph:b("MSession").push_phase};if(!c)return JSON.stringify(a);c=b("DTSG").getCachedToken();var d=[["fb_dtsg",c],["__ajax__",b("MRequestConfig").ajaxResponseToken.encrypted],["__a",b("MRequestConfig").ajaxResponseToken.encrypted],["__user",b("CurrentUser").getID()],["__fbbk","1"]];b("MRequestConfig").lsd&&d.push(["lsd",b("MRequestConfig").lsd]);b("SprinkleConfig").param_name&&(c?d.push([b("SprinkleConfig").param_name,b("DTSGUtils").getNumericValue(c)]):b("MRequestConfig").lsd&&d.push([b("SprinkleConfig").param_name,b("DTSGUtils").getNumericValue(b("MRequestConfig").lsd)]));for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&d.push([e,a[e]]);return b("MRequestDataSerializer").defaultDataSerializer(d)},prepWadForTransit:function(a){if(a.snappy==null||a.snappy===!0){var c=Date.now(),d=JSON.stringify(a.posts),e=b("SnappyCompressUtil").compressStringToSnappy(d);e!=null&&e.length=400&&b<600&&s.push(a)}var A={_canSend:function(a){return a[2]>=A._getEventTime()-(b("BanzaiAdapter").config.EXPIRY||(g||(g=b("BanzaiConsts"))).EXPIRY)},_clearPostBuffer:function(){s=[]},_gatherWadsAndPostsFromBuffer:function(a,b,c,d,e){__p&&__p();e===void 0&&(e=null);var f={},g=d.length,h=!1;d=d.filter(function(d,i){__p&&__p();if(h)return!0;var j=d.__meta;if(j.status>=o||!A._canSend(d))return!1;if(j.status>=n)return!0;var k=j.compress!=null?j.compress:!0,l=(j.webSessionId!=null?j.webSessionId:"null")+(j.userID!=null?j.userID:"null")+(j.appID!=null?j.appID:"null")+(k?"compress":""),m=f[l];m||(m={user:j.userID,webSessionId:j.webSessionId,app_id:j.appID,posts:[],snappy:k},f[l]=m,a.push(m));j.status=n;m.posts.push(d);b.push(d);e!=null&&e>0&&(e--,e==0&&(h=!0,i0){d[0].send_method="beacon";d.map(b("BanzaiAdapter").prepWadForTransit);d=new Blob([b("BanzaiAdapter").prepForTransit(d,!0)],{type:"application/x-www-form-urlencoded"});d=a.navigator.sendBeacon(A.adapter.endpoint,d);d?e.forEach(function(a){return a.__meta&&a.__meta.onSuccess&&a.__meta.onSuccess()}):e.forEach(function(a){return a.__meta&&a.__meta.onFailure&&a.__meta.onFailure()})}},_resetPostStatus:function(a){a.__meta.status=m},_restore:function(a){a=A._getStorage();(h||(h=b("ErrorUtils"))).applyWithGuard(a.restore,a);A._schedule(b("BanzaiAdapter").config.RESTORE_WAIT||(g||(g=b("BanzaiConsts"))).VITAL_WAIT)},_schedule:function(b){var c=A._getEventTime()+b;if(!r||c0&&((!A.adapter.useBeacon||!A._tryToSendViaBeacon())&&A._store(!1))},_wrapData:function(a,b,c,d,e){a=[a,b,c,0,e];a.__meta={webSessionId:A._getWebSessionId(),userID:A._getUserId(),appID:A._getAppId(),retry:d===!0,status:m};return a},BASIC:{delay:b("BanzaiAdapter").config.MAX_WAIT||(g||(g=b("BanzaiConsts"))).BASIC_WAIT},BASIC_WAIT:(g||(g=b("BanzaiConsts"))).BASIC_WAIT,ERROR:g.ERROR,OK:g.OK,SEND:g.SEND,SHUTDOWN:g.SHUTDOWN,VITAL:{delay:b("BanzaiAdapter").config.MIN_WAIT||(g||(g=b("BanzaiConsts"))).VITAL_WAIT},VITAL_WAIT:g.VITAL_WAIT,adapter:b("BanzaiAdapter"),canUseNavigatorBeacon:function(){return Boolean(navigator&&navigator.sendBeacon&&b("BanzaiAdapter").isOkToSendViaBeacon())},counterTracker:function(a,b,c,d){var e;b=b;a=A._wrapData(i,{2979:{banzai:(e={},e[p[a]]=[b],e)}},A._getEventTime(),!0);d.push(a);c.push({webSessionId:A._getWebSessionId(),posts:[a],snappy:!0,user:A._getUserId(),app_id:A._getAppId()})},flush:function(b,c){a.clearTimeout(q),q=null,A._sendWithCallbacks(b,c)},isEnabled:function(a){return Boolean(b("BanzaiAdapter").config.gks&&b("BanzaiAdapter").config.gks[a])},post:function(a,c,d){__p&&__p();var e;a||b("FBLogger")("banzai").mustfix("Banzai.post called without specifying a route");e=(e=JSON.stringify(c))!=null?e:"";var f=d==null?void 0:d.retry;if(b("BanzaiAdapter").config.disabled)return;var h=b("BanzaiAdapter").config.blacklist;if(h&&(h.indexOf&&(typeof h.indexOf=="function"&&h.indexOf(a)!=-1)))return;h=e.length;v++;x++;var i=A._wrapData(a,c,A._getEventTime(),f,h);(d==null?void 0:d.callback)&&(i.__meta.callback=d==null?void 0:d.callback);(d==null?void 0:d.compress)!=null&&(i.__meta.compress=d==null?void 0:d.compress);e=d==null?void 0:d.delay;e==null&&(e=(g||(g=b("BanzaiConsts"))).BASIC_WAIT);if(d==null?void 0:d.signal){i.__meta.status=n;c=[{user:A._getUserId(),webSessionId:A._getWebSessionId(),app_id:A._getAppId(),posts:[i],trigger:a,snappy:!1}];b("BanzaiAdapter").send(c,function(){y++,w++,i.__meta.status=o,i.__meta.callback&&i.__meta.callback()},function(a){z(i,a)},!0);if(!f)return}s.push(i);(A._schedule(e)||!t)&&(t=a);h=b("BanzaiLazyQueue").flushQueue();h.forEach(function(a){return A.post.apply(A,a)})},registerToSendWithBeacon:function(a,c,d,e){if(!(navigator&&navigator.sendBeacon&&b("BanzaiAdapter").isOkToSendViaBeacon()))return!1;if(!a){b("FBLogger")("banzai").mustfix("Banzai.registerToSendWithBeacon called without specifying a route");return!1}u.push({cb:c,route:a,onSuccess:d,onFailure:e});return!0},subscribe:b("BanzaiAdapter").subscribe};e.exports=A}),null); __d("BanzaiStreamPayloads",[],(function(a,b,c,d,e,f){"use strict";var g={};a={addPayload:function(a,b){g[a]=b},removePayload:function(a){delete g[a]},unload:function(a){Object.keys(g).forEach(function(b){b=g[b];a(b.route,b.payload)})}};e.exports=a}),null); __d("cancelIdleCallback",["requireCond","cr:692209"],(function(a,b,c,d,e,f){e.exports=b("cr:692209")}),null); __d("SetIdleTimeoutAcrossTransitions",["NavigationMetrics","cancelIdleCallback","clearTimeout","nullthrows","requestIdleCallbackAcrossTransitions","setTimeoutAcrossTransitions"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=!1,h=new Map();c={start:function(a,c){if(g){var d=b("setTimeoutAcrossTransitions")(function(){var c=b("requestIdleCallbackAcrossTransitions")(function(){a(),h["delete"](c)});h.set(d,c)},c);return d}else return b("setTimeoutAcrossTransitions")(a,c)},clear:function(a){b("clearTimeout")(a),h.has(a)&&(b("cancelIdleCallback")(b("nullthrows")(h.get(a))),h["delete"](a))}};b("NavigationMetrics").addRetroactiveListener(b("NavigationMetrics").Events.EVENT_OCCURRED,function(b,c){c.event==="all_pagelets_loaded"&&(g=!!a.requestIdleCallback)});e.exports=c}),null); __d("WebStorageMutex",["WebStorage","clearTimeout","pageID","setTimeoutAcrossTransitions"],(function(a,b,c,d,e,f){__p&&__p();var g,h=null,i=!1,j=b("pageID");function k(){i||(i=!0,h=(g||(g=b("WebStorage"))).getLocalStorage());return h}a=function(){"use strict";__p&&__p();function a(a){this.name=a}a.testSetPageID=function(a){j=a};var c=a.prototype;c.$1=function(){if(!k())return j;var a=k().getItem("mutex_"+this.name);a=a?a.split(":"):null;return a&&a[1]>=Date.now()?a[0]:null};c.$2=function(a){if(!k())return;a=Date.now()+(a||1e4);(g||(g=b("WebStorage"))).setItemGuarded(k(),"mutex_"+this.name,j+":"+a)};c.hasLock=function(){return this.$1()==j};c.lock=function(a,c,d){var e=this;this.$3&&b("clearTimeout")(this.$3);j==(this.$1()||j)&&this.$2(d);this.$3=b("setTimeoutAcrossTransitions")(function(){e.$3=null;var b=e.hasLock()?a:c;b&&b(e)},0)};c.unlock=function(){this.$3&&b("clearTimeout")(this.$3),k()&&this.hasLock()&&k().removeItem("mutex_"+this.name)};return a}();e.exports=a}),null); __d("lowerFacebookDomain",[],(function(a,b,c,d,e,f){b=window.location.hostname.match(/\.(facebook\.sg|facebookcorewwwi\.onion|workplace\.com)$/);var g=b?b[1]:"facebook.com";a.setDomain=function(a){g=a};a.isValidDocumentDomain=function(){return document.domain==g?!0:!1};function a(){document.domain=g}e.exports=a}),null); __d("BanzaiNew",["BanzaiBase","BanzaiConsts","BanzaiStreamPayloads","CurrentUser","ExecutionEnvironment","FBJSON","NavigationMetrics","SetIdleTimeoutAcrossTransitions","TimeSlice","Visibility","WebSession","WebStorage","emptyFunction","isInIframe","lowerFacebookDomain","performanceAbsoluteNow","WebStorageMutex"],(function(a,b,c,d,e,f){__p&&__p();var g,h,i,j="bz:",k={_getStorage:(c=b("BanzaiBase"))._getStorage,_getWebSessionId:c._getWebSessionId,_getUserId:c._getUserId,_getAppId:c._getAppId,_initialize:c._initialize,_schedule:c._schedule,flush:c.flush,_unload:c._unload,post:c.post},l=b("isInIframe")(),m=null,n,o,p,q,r=!1;function s(){r||(r=!0,q=(g||(g=b("WebStorage"))).getLocalStorage());return q}function t(){var a="check_quota";try{var b=s();if(!b)return!1;b.setItem(a,a);b.removeItem(a);return!0}catch(a){return!1}}c._getStorage=function(){__p&&__p();p||(!l?p={store:function(){var a=s(),c=b("BanzaiBase")._getPostBuffer().filter(function(a){return a.__meta.status<2});if(!a||c.length<=0)return;c=c.map(function(a){return[a[0],a[1],a[2],a[3]||0,a[4],a.__meta]});b("BanzaiBase")._clearPostBuffer();(g||(g=b("WebStorage"))).setItemGuarded(a,j+b("BanzaiBase")._getWebSessionId()+"."+b("BanzaiBase")._getEventTime(),b("FBJSON").stringify(c))},restore:function(){__p&&__p();var a=s();if(!a)return;var c=b("WebStorageMutex"),d=function(c){__p&&__p();var d=[];for(var e=0;e=(h||(h=b("BanzaiConsts"))).STORAGE_FLUSH_INTERVAL;c&&b("BanzaiBase")._restore(!1);(c||!m)&&(m=(i||(i=b("performanceAbsoluteNow")))(),(g||(g=b("WebStorage"))).setItemGuarded(a,(h||(h=b("BanzaiConsts"))).LAST_STORAGE_FLUSH,m.toString()))}}}:p={store:b("emptyFunction"),restore:b("emptyFunction"),flush:b("emptyFunction")});return p};c._getWebSessionId=function(){return b("WebSession").getId()};c._getUserId=function(){return b("CurrentUser").getID()};c._getAppId=function(){return b("CurrentUser").getAppID()};c._initialize=function(){b("ExecutionEnvironment").canUseDOM&&(b("BanzaiBase").adapter.useBeacon&&b("Visibility").isSupported()?(b("Visibility").addListener(b("Visibility").HIDDEN,function(){b("BanzaiBase")._getPostBuffer().length>0&&(b("BanzaiBase")._tryToSendViaBeacon()||b("BanzaiBase")._store(!1))}),b("BanzaiBase").isEnabled("enable_client_logging_clear_on_visible")&&b("Visibility").addListener(b("Visibility").VISIBLE,function(){b("BanzaiBase")._tryToSendViaBeacon()||b("BanzaiBase")._restore(!1)})):b("BanzaiBase").adapter.setHooks(b("BanzaiBase")),b("BanzaiBase").adapter.setUnloadHook(b("BanzaiBase")),b("NavigationMetrics").addListener(b("NavigationMetrics").Events.NAVIGATION_DONE,function(a,c){if(c.pageType!=="normal")return;b("BanzaiBase")._restore(!1);b("NavigationMetrics").removeCurrentListener()}))};c._getEventTime=function(){return(i||(i=b("performanceAbsoluteNow")))()};var u=b("TimeSlice").guard(function(){n=null,b("BanzaiBase")._sendWithCallbacks()},"Banzai.send",{propagationType:b("TimeSlice").PropagationType.ORPHAN});c._schedule=function(a){__p&&__p();var c=b("BanzaiBase")._getEventTime()+a;if(!n||c=f){a="$1"+d+"$2$3";f="(\\d)(\\d{"+(k-0)+"})($|\\D)";k=c.replace(i(f),a);if(k!=c){c=k;f="(\\d)(\\d{"+(h-0)+"})("+b("escapeRegex")(d)+")";h=i(f);while((k=c.replace(h,a))!=c)c=k}}j!=null&&(c=l(c,j),m=m&&l(m,j));d=c;m&&(d+=e+m);return d}function l(a,b){var c="";for(var d=0;d=b.length)return a;else if(a==null)return null;var d=null,e=b[c];e=e[p.INDEX];if(Array.isArray(e))for(var f=0;f1?d[1]:c;typeof h==="number"||g(0,484);f=l(h);typeof c==="number"&&(e[a]=b("intlNumUtils").formatNumberWithThousandDelimiters(c));return b("FbtTableAccessor").getNumberResult(f,e,h)}else if(d[0]===q.GENDER){d.length>1||g(0,485);a=d[1];f=m(a);return b("FbtTableAccessor").getGenderResult(f,e,a)}else g(0,486);else return[f,e]};u._plural=function(a,c,d){var e=l(a),f={};c&&(typeof d==="number"?f[c]=b("intlNumUtils").formatNumberWithThousandDelimiters(d):f[c]=d||b("intlNumUtils").formatNumberWithThousandDelimiters(a));return b("FbtTableAccessor").getNumberResult(e,f,a)};u._pronoun=function(a,c,d){c!==b("GenderConst").NOT_A_PERSON||!d||!d.human||g(0,487);d=v(a,c);return b("FbtTableAccessor").getPronounResult(d)};function v(a,c){switch(c){case b("GenderConst").NOT_A_PERSON:return a===r.OBJECT||a===r.REFLEXIVE?b("GenderConst").NOT_A_PERSON:b("GenderConst").UNKNOWN_PLURAL;case b("GenderConst").FEMALE_SINGULAR:case b("GenderConst").FEMALE_SINGULAR_GUESS:return b("GenderConst").FEMALE_SINGULAR;case b("GenderConst").MALE_SINGULAR:case b("GenderConst").MALE_SINGULAR_GUESS:return b("GenderConst").MALE_SINGULAR;case b("GenderConst").MIXED_SINGULAR:case b("GenderConst").FEMALE_PLURAL:case b("GenderConst").MALE_PLURAL:case b("GenderConst").NEUTER_PLURAL:case b("GenderConst").UNKNOWN_PLURAL:return b("GenderConst").UNKNOWN_PLURAL;case b("GenderConst").NEUTER_SINGULAR:case b("GenderConst").UNKNOWN_SINGULAR:return a===r.REFLEXIVE?b("GenderConst").NOT_A_PERSON:b("GenderConst").UNKNOWN_PLURAL}return b("GenderConst").NOT_A_PERSON}u._name=function(a,c,d){var e=m(d),f={};f[a]=c;return b("FbtTableAccessor").getGenderResult(e,f,d)};u.logImpression=function(a){h&&h.logImpression(a);return a};u.logQTImpression=function(a){b("Banzai").post("intl_qt_event",{hash:a});return a};u._wrapContent=function(a,c,d){if(!b("FbtResultGK").shouldReturnFbtResult&&b("FbtResultGK").inlineMode!=="REPORT")return a;a=typeof a==="string"?[a]:a;return b("FbtResultGK").inlineMode&&b("FbtResultGK").inlineMode!=="NO_INLINE"?new(b("InlineFbtResult"))(a,b("FbtResultGK").inlineMode,c,d):new(b("FbtResult"))(a)};u.enableJsonExportMode=function(){n=!0};u.disableJsonExportMode=function(){n=!1};u.isFbtInstance=function(a){return a instanceof b("FbtResultBase")};e.exports=u}),null); __d("QE2Logger",["Banzai"],(function(a,b,c,d,e,f){__p&&__p();var g="qe2_log_exposure",h={},i={logExposureForUser:function(a,b){b=b?b:"",i.__logExposure(a,b,9)},logExposureForEmail:function(a,b){i.__logExposure(a,b,3)},logExposureForDatr:function(a){i.__logExposure(a,"",5)},logExposureForOculusLoggedOut:function(a){i.__logExposure(a,"",31)},logExposureForOculusLoggedIn:function(a){i.__logExposure(a,"",14)},logExposureForPage:function(a,b){i.__logExposure(a,b,7)},logExposureForBusiness:function(a,b){i.__logExposure(a,b,17)},logExposureForGroup:function(a,b){i.__logExposure(a,b,25)},logExposureForPhoneNumber:function(a,b){i.__logExposure(a,b,8)},logExposureForScimCompanyID:function(a,b){i.__logExposure(a,b,22)},logExposureForAnalyticsEntityID:function(a,b){i.__logExposure(a,b,27)},logExposureForAdAccountID:function(a,b){i.__logExposure(a,b,0)},logExposure:function(a,b,c){i.__logExposure(a,b,c)},__logExposure:function(a,c,d){var e=a+"|"+c;if(h[e])return;a={universeName:a,unitID:c,unitType:d};b("Banzai").post(g,a,{signal:!0});h[e]=!0}};e.exports=i}),null);